package com.woniu.demo.domain;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Min;

/**
 * created by woniu201
 * created in 2018/7/8
 */
@Data
public class Stu {

    @NotEmpty(message = "姓名必填")
    private String name;

    @Min(value = 18, message = "最小年龄18岁")
    private Integer age;
}
